home *** CD-ROM | disk | FTP | other *** search
/ Hyper Stacks 1994 May / Hyper Stacks (Pacific HiTech)(1994)[Mac].iso / HyperTalk / Reference Material / HyperHelp FKEYƒ / HyperTalk Help / HyperTalk Help.rsrc / TEXT_1_Loops.txt < prev    next >
Encoding:
Text File  |  1987-12-19  |  1.1 KB  |  21 lines

  1. .f(monaco)\p(9)
  2. repeat [for] \Inum\P times repeat until \Icondition\P repeat while \Icondition\P
  3.     \Istatement-list\P         \Istatement-list\P         \Istatement-list\P
  4. end repeat             end repeat             end repeat
  5.  
  6. repeat with \Ii\P = \In1\P downTo \In2\P          repeat with \Ii\P = \In1\P to \In2\P
  7.     \Istatement-list\P                            \Istatement-list\P
  8. end repeat                            end repeat
  9.  
  10. repeat [forever]         on \Imsgname\P [\Iparams\P]   function \IfName\P [\Iparams\P]
  11.     \Istatement-list\P         \Istatement-list\P        \Istatement-list\P
  12. end repeat               end \Imsgname\P           end \IfName\P
  13.  
  14. if \Icondition\P then \Istatement\P [ else \Istatement\P ]
  15.  
  16. if \Icondition\P then      Other control constructs are ‚Äúexit \Iname\P‚Äù¬†for
  17.     \Istatement-list\P     leaving a function, handler or loop. ‚Äúnext
  18. [ else                 repeat‚Äù¬†for going to next iteration of loop, and
  19.     \Istatement-list\P ]   ‚Äúpass \Iname\P‚Äù¬†for passing an event to a handler
  20. end if                 higher in the hierarchy (e.g. from field to card)
  21.